<template>
  <div>
    <template>
      <el-table :data="Evalation" style="width: 100%">
        <el-table-column prop="SchoolSemester" label="学年学期" width="180"></el-table-column>
        <el-table-column prop="学院" label="姓名" width="180"></el-table-column>
        <el-table-column prop="address" label="地址"></el-table-column>
      </el-table>
    </template>
  </div>
</template>

<script>
export default {
  data() {
    return {
      user: "",
      Evalation: [],
      Course: [],
      College: []
    };
  },
  created() {
    this.GetWorkerEvaluationByStudent();
    this.GetAllCollege();
    this.GetAllCourse();
  },
  mounted() {},
  methods: {
    GetAllCourse() {
      this.$axios({
        method: "get",
        url: this.$api.GetAllCourse,
        data: {},
        params: {}
      }).then(res => {
        this.Course = res.data.message;
      });
    },
    GetAllCollege() {
      this.$axios({
        method: "get",
        url: this.$api.GetAllCollege,
        data: {},
        params: {}
      }).then(res => {
        this.College = res.data.message;
      });
    },
    GetWorkerEvaluationByStudent() {
      this.user = JSON.parse(sessionStorage.getItem("user"));
      this.$axios({
        method: "get",
        url: this.$api.GetWorkerEvaluationByStudent,
        params: {
          token: this.user.Token,
          Semester: 4
        }
      }).then(res => {
        this.Evalation = res.data.message;
      });
    }
  }
};
</script>

<style scoped>
</style>
